package com.kbbywyclient.util;

import android.util.Base64;

import java.io.UnsupportedEncodingException;

/**
 * Created by cbb on 2017/4/19.
 */

public class Base64Utils {

    /**
     *base64解码
     * @param text base64编码后的字符串
     * @return 解码后的字符串
     */
    public static String base64Decode(String text){
        try {
            return new String(Base64.decode(text,Base64.DEFAULT),"UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
            return text;
        }
    }
}
